package ru.ipo.dces.problemsviewer;

import info.clearthought.layout.TableLayout;

import javax.swing.*;

/**
 * Created by IntelliJ IDEA.
 * User: ilya
 * Date: 09.06.11
 * Time: 16:29
 */
public class BigBorderPanel extends JPanel {

    private static final double H_GAP = 42;
    private static final double V_GAP = 42;

    private static TableLayout layout = new TableLayout(
            new double[]{H_GAP, TableLayout.FILL, H_GAP},
            new double[]{V_GAP, TableLayout.FILL, V_GAP}
    );

    //TODO add border color
    public BigBorderPanel(JComponent component) {
        setLayout(layout);
        add(component, "1 1");
    }

}
